package com.ruoyi.voucher.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证附件对象 voucher_attachment
 * 
 * @author ruoyi
 * @date 2025-02-26
 */
public class VoucherAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 附件ID */
    @TableId(type = IdType.AUTO)
    private Long attachmentId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String attachmentName;

    /** 附件存储地址 */
    @Excel(name = "附件存储地址")
    private String attachmentUrl;

    /** 关联凭证ID */
    @Excel(name = "关联凭证ID")
    private Long voucherId;

    public void setAttachmentId(Long attachmentId) 
    {
        this.attachmentId = attachmentId;
    }

    public Long getAttachmentId() 
    {
        return attachmentId;
    }
    public void setAttachmentName(String attachmentName) 
    {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentName() 
    {
        return attachmentName;
    }
    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }
    public void setVoucherId(Long voucherId) 
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId() 
    {
        return voucherId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attachmentId", getAttachmentId())
            .append("attachmentName", getAttachmentName())
            .append("attachmentUrl", getAttachmentUrl())
            .append("voucherId", getVoucherId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
